package com.myapi.client;

import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.myapi.client.DAO.PlayerDAO;

@PersistenceCapable
		public class PotContributionInfo implements Serializable{
	@PrimaryKey      

	   @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
		     private Key potId; 

	
	@Persistent
	private PlayerDAO player;
	@Persistent
	private double amount;
	@Persistent
	private boolean allIn;
	@Persistent
	private boolean forced;  //blinds and antes are forced
	@Persistent
	private boolean complete;  //complete for that betting round
	@Persistent
	private boolean mucked;  //if the equivalent PlayerHand is mucked

	public PotContributionInfo() {;
	}

	public PlayerDAO getPlayer() {
		return player;
	}

	public void setPlayer(PlayerDAO player) {
		this.player = player;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public boolean isAllIn() {
		return allIn;
	}

	public void setAllIn(boolean allIn) {
		this.allIn = allIn;
	}

	public boolean isForced() {
		return forced;
	}

	public void setForced(boolean forced) {
		this.forced = forced;
	}

	public boolean isComplete() {
		return complete;
	}

	public void setComplete(boolean complete) {
		this.complete = complete;
	}

	public boolean isMucked() {
		return mucked;
	}

	public void setMucked(boolean mucked) {
		this.mucked = mucked;
	}

}
